import React,{useState} from 'react'

export default function Gege({car,setCar}) {
  
  const changeCar = () => {
    setCar('别摸我')
  }
  return (
    <div>
      <p>我是哥哥</p>
      <p>我开的车是{car}</p>
      <button onClick={changeCar}>换车了</button>
    </div>
  )
}
